//
//  LFSpectrumTrimmerGridView.h
//  LFMediaEditingController
//
//  Created by LamTsanFeng on 2017/7/18.
//  Copyright © 2017年 LamTsanFeng. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LFSpectrumTrimmerGridViewDelegate;

@interface LFSpectrumTrimmerGridView : UIView

@property (nonatomic, assign) CGRect gridRect;
- (void)setGridRect:(CGRect)gridRect animated:(BOOL)animated;

/** 最小尺寸 */
@property (nonatomic, assign) CGFloat controlMinWidth;
/** 最大尺寸 */
@property (nonatomic, assign) CGFloat controlMaxWidth;

@property (nonatomic, getter=isEnabledLeftCorner) BOOL enabledLeftCorner;
@property (nonatomic, getter=isEnabledRightCorner) BOOL enabledRightCorner;

/** 进度 */
@property (nonatomic, assign) double progress;
- (void)setHiddenProgress:(BOOL)hidden;

@property (nonatomic, weak) id<LFSpectrumTrimmerGridViewDelegate> delegate;

@end

@protocol LFSpectrumTrimmerGridViewDelegate <NSObject>

- (void)lf_spectrumTrimmerGridViewDidBeginResizing:(LFSpectrumTrimmerGridView *)gridView;
- (void)lf_spectrumTrimmerGridViewDidResizing:(LFSpectrumTrimmerGridView *)gridView;
- (void)lf_spectrumTrimmerGridViewDidEndResizing:(LFSpectrumTrimmerGridView *)gridView;

@end
